package org.kaleido.client.view.impl;

import org.kaleido.client.resources.KaleidoResources;
import org.kaleido.client.view.IListLogDataView;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;

/**
 * Pantalla que mostrará el listado de Gestiones.
 * 
 * @author inifc
 * 
 */
public class ListLogDataViewImpl extends Composite implements IListLogDataView {
    
    private DockLayoutPanel listLogs;

    private Image addFullLogImage = new Image();
    
    private Image addStreamLogImage = new Image();
    
    public ListLogDataViewImpl() {
        FlowPanel flow = new FlowPanel();
        flow.add(new Label("Listado de datos de logs"));
        initWidget(flow);
        addFullLogImage.setStyleName(KaleidoResources.INSTANCE.css().newElement());
        flow.add(addFullLogImage);
        addStreamLogImage.setStyleName(KaleidoResources.INSTANCE.css().newElement());
        flow.add(addStreamLogImage);
        listLogs = new DockLayoutPanel(Unit.PCT);
        flow.add(listLogs);
    }
    
    public DockLayoutPanel getListLogs() {
        return listLogs;
    }

    public HasClickHandlers getAddFullLogHandler() {
        return addFullLogImage;
    }

    public HasClickHandlers getAddStreamLogHandler() {
        return addStreamLogImage;
    }
}
